
/**
 *
 */
package com.serviceprovider.business.module.admin.address.services;

//~--- non-JDK imports --------------------------------------------------------

import com.serviceprovider.business.module.admin.address.dao.interfaces.IGeoDao;
import com.serviceprovider.business.module.admin.address.model.Country;
import com.serviceprovider.business.module.admin.address.model.State;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//~--- JDK imports ------------------------------------------------------------

import java.util.List;

/**
 * @author mrduongnv@gmail.com
 *
 */
@Service("stateService")
public class GeoService implements IGeoService {
    @Autowired
    private IGeoDao geoDao;

    /**
     * {@inheritDoc}
     */
    @Override
    public List<State> getAllStates() {
        return geoDao.getAllStates();
    }

    @Override
    public List<Country> getAllCountries() {
        return geoDao.getAllCountries();
    }

    @Override
    public Country getCountry(String code) {
        return geoDao.getCountry(code);
    }

    @Override
    public State getState(String code) {
        return geoDao.getState(code);
    }
}



